<template>
  <!-- 控制面板头部插槽 -->
  <div class="nav_header">
    <div class="logo">
      <slot name="logo"></slot>
    </div>
    <div class="name">
      <slot name="name"></slot>
    </div>
    <div class="icon">
      <slot name="icon"></slot>
    </div>
  </div>
</template>
<script>
export default {
  name: "LeftHeader",
  data() {
    return {};
  },
};
</script>
<style lang="scss" scoped>
.nav_header {
  height: 36px;
  box-sizing: border-box;
  background-image: url("~assets/3d_icon/grid_bg.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  margin-top: 8px;
  display: flex;
  align-items: center;
  padding: 0 19px 0 20px;

  .name {
    // margin-top: 4px;
    flex: 1;
    text-align: left;
    margin-top: 6px;
    span {
      margin-left: 7px;
      font-size: 16px;
      font-weight: 500;
      color: #fff;
    }
  }

  .btn {
    .switch {
      width: 32px;
      height: 17px;
      margin-left: 19px;
    }
    // background-color: pink;
  }
}
::v-deep .anticon {
  color: #fff;
  font-size: 20px;
  margin-top: 5px;
  margin-left: -7px;
}
</style>
